package com.bm.util;

import java.io.*;
import java.util.Properties;


/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
/**
 *
 * @author BimasaktiEmpat
 */
public class ConfigReader {

    private int interval;
    private String limit;    
    private PropertiesHandler properties;
    public static String port;    

    public ConfigReader() {
        try {
            loadKonfigurasi();
        } catch (Exception e) {
            MessagePrinter.printLog(e.getMessage());
        }
    }

    public final void loadKonfigurasi() throws Exception {
        this.properties = new PropertiesHandler();
        this.interval = this.properties.getLimitRowOutbox();
    }

    public int getLimitRow() {
        return this.interval;
    }
}
